package com.tools.automatic_clock.service;

import com.tools.automatic_clock.bean.account;
import com.tools.automatic_clock.dao.studentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class userInfoGetter {
    @Autowired
    private studentMapper studentmapper;

    public account selectBySnum(Integer snum){
        account student = studentmapper.select_num(snum);
        return student;
    }

    public int elapsedDate(Integer sunm){
        return studentmapper.elapsedDate(sunm);
    }

    public int type(Integer sunm){
        return studentmapper.type(sunm);
    }
    public List numList(){
        return studentmapper.numList();
    }
}
